package com.acme.bankapp.domain.bank;

public class SavingAccount extends AbstractAccount {

	public SavingAccount(double startBalance) {
		super(startBalance);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return super.toString() + "Maximum amount to withdraw: "
				+ maximumAmountToWithdraw();
	}

	@Override
	public void withdraw(double x) {
		if (balance >= x) {
			balance -= x;
		}
	}
}
